/**
 * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 */

package com.iwindplus.cloud.i18n.domain.property;

import com.iwindplus.cloud.i18n.domain.constant.I18nConstant;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.autoconfigure.context.MessageSourceProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * i18n相关属性.
 *
 * @author zengdegui
 * @since 2018/10/10
 */
@Setter
@Getter
@EqualsAndHashCode(callSuper = false)
@ConfigurationProperties(prefix = "spring.messages")
public class I18nProperty extends MessageSourceProperties {

    /**
     * 是否启用远程加载.
     */
    private Boolean enabledRemote = Boolean.TRUE;

    /**
     * 是否启用并发刷新.
     */
    private Boolean concurrentRefresh = Boolean.TRUE;

    /**
     * 语言集合.
     */
    private List<String> languages = List.of("zh-CN", "en-US");

    /**
     * nacos分组名称.
     */
    private String group = I18nConstant.I18N_GROUP;

    /**
     * 国际化文件后缀.
     */
    private String fileSuffix = I18nConstant.FILE_SUFFIX;
}
